package com.rexolar.openapi;

import com.rexolar.openapi.utlis.MacAddressUtil;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@MapperScan("com.rexolar.openapi.db.mapper") //mapper扫描
//@EnableDiscoveryClient //启用nacos
// 开启定时任务
@EnableScheduling
//开启线程池
@EnableAsync
@Slf4j
public class RexOpenApiApplication {
	public static void main(String[] args) {
		SpringApplication.run(RexOpenApiApplication.class, args);
		log.info("OpenApiApplication start success, Mac:{}", MacAddressUtil.getMacAddress());
	}
}